package com.example.model.entity;

import java.time.LocalDateTime;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * 告警上报记录表 实体类
 *
 * @author zhangr
 * @Description Created on 2020-12-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TWarning implements Serializable {

    /**
     * 告警id
     */
    @TableId(value = "warning_id", type = IdType.ID_WORKER_STR)
    private String warningId;

    /**
     * 告警详情
     */
    private String warningInfo;

    /**
     * 告警设备
     */
    private String equipmentId;

    /**
     * 告警设备通道
     */
    private String partId;

    /**
     * 告警时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 告警解除时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDate;

    /**
     * 有效性
     */
    private Long isValid;

    /**
     * 备注
     */
    private String remarks;

    private String sourceId;
    private Long isDoPlan;
}
